<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../src/admin.css"/>
    <link rel="stylesheet" href="../css/uu-style.css"/>
    <script src="../src/script.js"></script>
    <script src="../js/qr.js"></script>
    <script src="../js/uz-common.js"></script>
</head>
<body class="wp-admin wp-core-ui js  nav-menus-php auto-fold admin-bar branch-4-2 version-4-2-2 admin-color-fresh locale-zh-cn customize-support svg menu-max-depth-0">
<div class="wrap control-section wp-admin wp-core-ui js  nav-menus-php auto-fold admin-bar branch-4-2 version-4-2-2 admin-color-fresh locale-zh-cn customize-support svg menu-max-depth-0" id="wpbody-content">
    <div id="uz">
        <h2>插件名称</h2>
        <ul class="subsubsub">
            <li>插件版本号：V<span class="tpl-version"></span> |</li>
            <li>最后更新日期：<span class="tpl-updatetime"></span> | </li>
            <li><a href="javascript:;">前往站长中心</a> | </li>
            <li><a href="javascript:;">退出</a></li>
        </ul>
        <div class="clear"></div>
        <div id="nav-menus-frame">
            <div id="menu-settings-column" class="metabox-holder">
                <div class="accordion-container">
                    <div class="accordion-section">
                        <h3 class="accordion-section-title">添加菜单</h3>

                        <div class="accordion-section-content" style="display: block;">
                            <select name="menu">
                            </select>
                            <div id="taxonomy-category" class="taxonomydiv">
                                <!-- /.tabs-panel -->

                                <p class="button-controls">
                                    <span class="add-to-menu">
                                        <input type="submit" class="button-secondary submit-add-to-menu right" value="添加至菜单" name="add-taxonomy-menu-item" id="submit-taxonomy-category">
                                        <span class="spinner"></span>
                                    </span>
                                </p>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div id="menu-management-liquid">
                <div id="menu-management">
                    <div class="menu-edit">

                        <div class="nav-menu-header">
                            <div class="major-publishing-actions">
                                <h3>APP菜单设置</h3>

                                <div class="publishing-action">
                                    <div class="button button-primary menu-save">保存菜单</div>
                                </div>
                                <!-- END .publishing-action -->
                            </div>
                            <!-- END .major-publishing-actions -->
                        </div>
                        <!-- END .nav-menu-header -->

                        <div id="post-body">
                            <div id="post-body-content">
                                <table class="wp-list-table widefat fixed striped posts">
                                    <thead>
                                    <tr>
                                        <th scope="col" class="manage-column check-column">删除</th>
                                        <th scope="col" class="manage-column">排序</th>
                                        <th scope="col" class="manage-column">名称</th>
                                        <th scope="col" class="manage-column">App菜单名称</th>
                                        <th scope="col" class="manage-column">操作</th>
                                    </tr>
                                    </thead>

                                    <tbody id="the-list">

                                    </tbody>

                                    <tfoot>
                                    <tr>
                                        <th scope="col" class="check-column">
                                            <input id="cb-select-all" type="checkbox">

                                        </th>
                                        <th><label class="" for="cb-select-all">全选</label></th>
                                        <th>&nbsp;</th>
                                        <th>&nbsp;</th>
                                        <th>&nbsp;</th>
                                    </tr>
                                    </tfoot>

                                </table>

                            </div>
                            <!-- /#post-body-content -->
                        </div>
                        <!-- /#post-body --><!-- /#update-nav-menu -->

                        <div class="nav-menu-header">
                            <div class="major-publishing-actions">
                                <h3>APP菜单设置</h3>

                                <div class="publishing-action">
                                    <div class="button button-primary menu-save">保存菜单</div>
                                </div>
                                <!-- END .publishing-action -->
                            </div>
                            <!-- END .major-publishing-actions -->
                        </div>
                        <!-- END .nav-menu-header -->

                    </div>
                </div>
                <!-- /#menu-management -->
            </div>
        </div>

    </div>
</div>
<script>
    var v = {
        "data": {
            "nav_menus": {
                "list": [
                    {
                        "ID": 6,
                        "name": "mobile",
                        "slug": "mobile",
                        "description": "",
                        "taxonomy": "nav_menu",
                        "parent": null,
                        "count": 5,
                        "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts",
                        "meta": {
                            "links": {
                                "collection": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=taxonomies%2Fnav_menu%2Fterms&action=index",
                                "self": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=taxonomies%2Fnav_menu%2Fterms%2F6&action=index"
                            }
                        },
                        "item_list": [
                            {
                                "ID": 62,
                                "name": "\u9996\u9875",
                                "description": "",
                                "parent": null,
                                "count": 0,
                                "object": "custom",
                                "type": "custom",
                                "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts"
                            },
                            {
                                "ID": 60,
                                "name": "\u743c\u7237",
                                "description": "",
                                "parent": null,
                                "count": 0,
                                "object": "category",
                                "type": "taxonomy",
                                "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts&filter%5Bcat%5D=3"
                            }
                        ]
                    },
                    {
                        "ID": 2,
                        "name": "\u6d4b\u8bd5",
                        "slug": "%e6%b5%8b%e8%af%95",
                        "description": "",
                        "taxonomy": "nav_menu",
                        "parent": null,
                        "count": 3,
                        "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts",
                        "meta": {
                            "links": {
                                "collection": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=taxonomies%2Fnav_menu%2Fterms&action=index",
                                "self": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=taxonomies%2Fnav_menu%2Fterms%2F2&action=index"
                            }
                        },
                        "item_list": [
                            {
                                "ID": 25,
                                "name": "\u9996\u9875",
                                "description": "",
                                "parent": null,
                                "count": 0,
                                "object": "custom",
                                "type": "custom",
                                "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts"
                            },
                            {
                                "ID": 24,
                                "name": "\u743c\u7237",
                                "description": "",
                                "parent": null,
                                "count": 0,
                                "object": "category",
                                "type": "taxonomy",
                                "link": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=posts&action=get_posts&filter%5Bcat%5D=3"
                            }
                        ]
                    }
                ]
            },
            "menu_confs": [
                {
                    "name": "qiongye",
                    "org_name": "qiongye",
                    "ID": 2,
                    "type": "category",
                    "link": "http",
                    "rank": 9,
                    "show": true
                },
                {
                    "name": "qiong",
                    "org_name": "qiongye",
                    "ID": 1,
                    "type": "category",
                    "img_url": "http",
                    "link": "http",
                    "rank": 10,
                    "show": true
                }
            ],
            "opt_url": "http:\/\/192.168.180.50:8089\/wordpress\/wp-admin\/plugins.php?page=&action=banner"
        },
        "ajax_url": "http:\/\/192.168.180.50:8089\/wordpress\/?yz_app=1&api_route=admin_api&action=update_menu_conf"
    }
    jQuery(function () {
        uz.setMenu(v.data, v.ajax_url);
    });
</script>
</body>
</html>